package com.data.center.entity.mongo;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.time.LocalDateTime;
@Document(collection = "organization")
public class organization {


        @Id // MongoDB 自动生成的唯一标识符
        private String id;

        @Field("organization_id") // 对应 MongoDB 文档中的字段
        private String organizationId;

        @Field("name")
        private String name;

        @Field("abbreviation")
        private String abbreviation;

        @Field("category")
        private String category;

        @Field("uscc")
        private String uscc;

        @Field("representative")
        private String representative;

        @Field("description")
        private String description;

        @Field("country")
        private String country;

        @Field("division_code")
        private String divisionCode;

        @Field("address")
        private String address;

        @Field("post_code")
        private String postCode;

        @Field("status")
        private Integer status;

        @Field("approver")
        private String approver;

        @Field("approval_time")
        private LocalDateTime approvalTime;

        // Getters and Setters
        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getOrganizationId() {
            return organizationId;
        }

        public void setOrganizationId(String organizationId) {
            this.organizationId = organizationId;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getAbbreviation() {
            return abbreviation;
        }

        public void setAbbreviation(String abbreviation) {
            this.abbreviation = abbreviation;
        }

        public String getCategory() {
            return category;
        }

        public void setCategory(String category) {
            this.category = category;
        }

        public String getUscc() {
            return uscc;
        }

        public void setUscc(String uscc) {
            this.uscc = uscc;
        }

        public String getRepresentative() {
            return representative;
        }

        public void setRepresentative(String representative) {
            this.representative = representative;
        }

        public String getDescription() {
            return description;
        }

        public void setDescription(String description) {
            this.description = description;
        }

        public String getCountry() {
            return country;
        }

        public void setCountry(String country) {
            this.country = country;
        }

        public String getDivisionCode() {
            return divisionCode;
        }

        public void setDivisionCode(String divisionCode) {
            this.divisionCode = divisionCode;
        }

        public String getAddress() {
            return address;
        }

        public void setAddress(String address) {
            this.address = address;
        }

        public String getPostCode() {
            return postCode;
        }

        public void setPostCode(String postCode) {
            this.postCode = postCode;
        }

        public Integer getStatus() {
            return status;
        }

        public void setStatus(Integer status) {
            this.status = status;
        }

        public String getApprover() {
            return approver;
        }

        public void setApprover(String approver) {
            this.approver = approver;
        }

        public LocalDateTime getApprovalTime() {
            return approvalTime;
        }

        public void setApprovalTime(LocalDateTime approvalTime) {
            this.approvalTime = approvalTime;
        }

        @Override
        public String toString() {
            return "neoOrganization{" +
                    "id='" + id + '\'' +
                    ", organizationId='" + organizationId + '\'' +
                    ", name='" + name + '\'' +
                    ", abbreviation='" + abbreviation + '\'' +
                    ", category='" + category + '\'' +
                    ", uscc='" + uscc + '\'' +
                    ", representative='" + representative + '\'' +
                    ", description='" + description + '\'' +
                    ", country='" + country + '\'' +
                    ", divisionCode='" + divisionCode + '\'' +
                    ", address='" + address + '\'' +
                    ", postCode='" + postCode + '\'' +
                    ", status=" + status +
                    ", approver='" + approver + '\'' +
                    ", approvalTime=" + approvalTime +
                    '}';
        }

}
